﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Commnunications
{
    public class DataEventArgs : EventArgs
    {
        public DataEventType EventType = DataEventType.Data;
        public DataEventArgs(DataEventType type)
        {
            EventType = type;
        }
        public DataEventArgs(DataEventType type,byte[] data):this(type)
        {
            EventType = type;
            this.Data = data;
        }

        public byte[] Data;
        public string RemoteIp;
        public Exception Message;
    }
}
